home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
returnto.zip
/
RUNPROGR.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-04-06
|
1KB
|
34 lines
@ECHO OFF
rem EXAMPLE APPLICATIONS BATCH FILE (runprogr.BAT)
rem
rem ----------------------------------------------------------------------
rem Purpose: to run MYPROGRM, which is not in the current directory,
rem *and return to the starting drive and directory*; MYPROGRM is a program
rem that must be run from its own directory or is not in a PATH'd directory
rem ----------------------------------------------------------------------
rem
rem See remark statements in SETRETRN.BAT for a full description of the
rem function and requirements of SETRETRN.BAT, DORETURN.BAT, and runprogr.BAT.
rem
rem If DOS version is earlier than 3.3, delete @ and substitute COMMAND /C
rem for CALL in this batch file. The batch files SETRETRN.BAT and
rem DORETURN.BAT must be in a PATH'd directory. *This* file (runprogr.BAT)
rem must also be in a PATH'd directory.
rem
rem "runprogr" can be a name of your choosing and "MYPROGRM" is the name of
rem the applications program to run; e.g., "runprogr.BAT" = "EDIT.BAT" and
rem "MYPROGRM" = "QEDIT".
rem
rem RETURNTO.ZIP: RUNPROGR.BAT, SETRETRN.BAT, DORETURN.BAT
rem Derived from item in PC Magazine, June 26, 1990 (Vol. 9, No. 12)
rem
rem ---------------------------------------------- ==Bruce M. Bowman== ---
rem
CALL SETRETRN
rem -- Modify lines below as req'd. No changes in SETRETRN.BAT & DORETURN.BAT.
C:
CD \UTILS
MYPROGRM %1 %2
rem -- Modify lines above as required.
CALL DORETURN